home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / PMPN220A.ZIP / install.cmd < prev    next >
Encoding:
Text File  |  1996-02-08  |  1.1 KB  |  52 lines

  1. /* Pre-installation script */
  2. '@echo off'
  3. 'cls'
  4.  
  5. call RxFuncAdd 'SysFileTree', 'RexxUtil', 'SysFileTree'
  6.  
  7. curdir = directory();
  8. if RIGHT( curdir, 1 ) <> "\" then
  9.     curdir = curdir||'\'
  10.  
  11. /* Is 'disk.1' in current directory? */
  12. call SysFileTree curdir||'disk.1', 'file', 'F'
  13. if file.0 = 0 then do
  14.     say "File 'disk.1' not found."
  15.     say 'Install.cmd must be started from source drive.'
  16.     say ''
  17.     exit 0;
  18. end;
  19.  
  20.  
  21. tmpdir = ''
  22. if curdir <> 'A:\' & curdir <> 'B:\' then
  23.    tmpdir = curdir;
  24. else
  25.    do
  26.      env = 'OS2ENVIRONMENT'
  27.      tmpdir = value( 'tmp',,env );
  28.    
  29.      if tmpdir = '' then do
  30.        tmpdir = value( 'temp',,env );
  31.        if tmpdir = '' then
  32.           tmpdir = 'C:\'
  33.      end;
  34.    end;
  35.  
  36. say 'Source directory:    '||curdir
  37. say 'Temporary directory: '||tmpdir;
  38. say ''
  39.  
  40. newdir = directory( tmpdir );
  41. curdir||'disk.1 -o -C pmpninst.exe g21aoi2d.dll gcrtoi1d.dll gcrtoi2d.dll'
  42.  
  43. 'pmpninst.exe '||curdir;
  44.  
  45. say ''
  46. say 'Cleaning up ...'
  47. 'del pmpninst.exe'
  48. 'del g21aoi2d.dll'
  49. 'del gcrtoi1d.dll'
  50. 'del gcrtoi2d.dll'
  51.  
  52.